home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / news / nntp / inn / faq-inn-1 < prev    next >
Encoding:
Text File  |  1993-08-23  |  26.4 KB  |  724 lines

  1. Last Changed: $Id: FAQ-inn.1,v 1.41 1993/08/12 19:55:57 tal Exp $
  2.  
  3.                           Table Of Contents:
  4.                           ------------------
  5.  
  6. QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN:
  7.     Where can I get it?
  8.     What is INN?
  9.     What machines does it run on?
  10.     Can I run C News with INN?
  11.     Can I run NNTP with INN?
  12.     Can I run the reference implementation (NNTP1.5) with INN?
  13.     Can I run INN on my UUCP-only machine?
  14.     Suppose I have a 286 machine?
  15.     Does INN implement trn's XTHREADS, etc?
  16.     Does INN do UUCP batching like C News?
  17. COMMON DEBUGGING/SETUP QUESTIONS:
  18.     Help!?  How do I configure this beast
  19.     Why does innd just exit right away with no message?
  20.     I'm getting news but postings aren't going out.
  21.     How come my host name comes out twice in the Path line?
  22.     Why does my innd often die with the message "Can't sync history,
  23.     7-bit encoded batches are not correctly processed. Why is this?
  24. SPECIFIC OPERATING SYSTEM BUILD ADVICE:
  25.     SunOS 4.1.2
  26.     Ultrix tip 1 (mmap)
  27.     Ultrix tip 2 (syslog)
  28.     HP-UX
  29.     SVR4, Solaris 2.x, and SCO ODT 3.0
  30. OPERATIONAL QUESTIONS:
  31.     Safe way to edit the "active" file?
  32.     Expire had problems last night, and while I fixed the problem
  33.         it still won't run.
  34.     Why am I getting alt.sex.pictures even though I
  35.         have "ME:!alt.sex.pictures" in my newsfeeds file?
  36.     Why doesn't this newsfeeds entry do what I want?
  37.     Why am I forwarded cancel messages for articles in comp.foo
  38.         when I explicitly have !comp.foo in the newsfeeds entry?
  39.     What's the best way to upgrade to a new version of INN?
  40. ADVANCED QUESTIONS:
  41.     What do I do if /var/spool/news is set up over many partitions?
  42.     How do I talk to innd from C or Perl?
  43.     How do I set up a delayed IHAVE/SENDME over NNTP?
  44.  
  45.  
  46. (The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
  47. maintained by Tom Limoncelli <tal@warren.mentorg.com>.)
  48.  
  49.  
  50. ======================================================================
  51.  
  52. ADVANCED QUESTIONS:
  53.             QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN
  54.  
  55. ======================================================================
  56.  
  57.  
  58. ------------------------------
  59.  
  60. Subject:  Where can I get it?
  61.  
  62. The official archive site is ftp.uu.net in the directory
  63. networking/news/nntp/inn.  Archie current lists over 30 archive sites;
  64. three other international sites are grasp.insa-lyon.fr in
  65. pub/unix/news/inn, munnari.oz.au in pub/news/inn, and src.doc.ic.ac.uk
  66. in computing/usenet/software/transport
  67.  
  68. This part of the FAQ can be gotten by sending email to
  69. majordomo@warren.mentorg.com with "sendme faq-inn-1" in the body of the
  70. message.  (the Subject: of the message will be ignored.) (Substitute
  71. faq-inn-2 or faq-inn-3 to get those parts).
  72.  
  73. For example:
  74.  
  75. % mail majordomo@warren.mentorg.com
  76. Subject: ignored
  77. sendme faq-inn-1
  78. sendme faq-inn-2
  79. sendme faq-inn-3
  80. ^D
  81.  
  82. Or
  83.  
  84. % echo sendme faq-inn-1 | mail majordomo@warren.mentorg.com
  85. % echo sendme faq-inn-2 | mail majordomo@warren.mentorg.com
  86. % echo sendme faq-inn-3 | mail majordomo@warren.mentorg.com
  87.  
  88.  
  89. ------------------------------
  90.  
  91. Subject:  What is INN?
  92.  
  93. InterNetNews is a complete Usenet system.  The cornerstone of the package
  94. is innd, an NNTP server that multiplexes all I/O.  Think of it as an nntpd
  95. merged with the B News inews, or as a C News relaynews that reads multiple
  96. NNTP streams.  Newsreading is handled by a separate server, nnrpd, that is
  97. spawned for each client.  Both innd and nnrpd have some slight variances
  98. from the NNTP protocol (although in normal use you will never notice); see
  99. the manpages.  INN separates hosts that feed you news from those that have
  100. users reading news.  If you need to support a mixed environment you will have
  101. to do some extra work; the installation manual gives some hints.
  102.  
  103.  
  104. ------------------------------
  105.  
  106. Subject:  What machines does it run on?
  107.  
  108. If you have socket() and select() then INN will probably run on your
  109. machine.  In addition to the common platforms found around the Internet
  110. (Sun and Ultrix, for example), INN runs on AIX, A/UX, NeXT, and a host of
  111. others.
  112.  
  113.  
  114. ------------------------------
  115.  
  116. Subject:  Can I run C News with INN?
  117.  
  118. No.  INN handles all article reception, filing, forwarding, and
  119. expiration.  You will most likely get a corrupted database if you try to
  120. run INN with any other news system.  For testing, you can probably shut
  121. down your old system, bring up INN, and then reverse the process.  (INN
  122. uses the C News history file and DBZ database, so if you don't run C News
  123. you will have to do some fiddling around with those files.)
  124.  
  125.  
  126. ------------------------------
  127.  
  128. Subject:  Can I run NNTP with INN?
  129.  
  130. There's a confusion here.  NNTP is a protocol, defined in RFC 977.  There
  131. is also an implementation of the protocol, NNTP1.5, that many people call
  132. NNTP.  When there was only one implementation of the protocol, that was
  133. okay, but now that there are other implementations (for example, INN) it
  134. is getting confusing.  It would be as if "sendmail" were named "smtp."
  135. Please try to be clear -- do you mean the NNTP protocol, or the NNTP
  136. reference implementation currently maintained by Stan Barber?
  137.  
  138.  
  139. ------------------------------
  140.  
  141. Subject:  Can I run the reference implementation (NNTP1.5) with INN?
  142.  
  143. The quick answer is no.  INN listens on the NNTP port and handles all
  144. incoming traffic.  It receives articles, files them, and arranges for them
  145. to be forwarded to your peers.  If a site connects that is not listed as a
  146. peer (e.g., a local workstation that does newsreading) then the INN server
  147. hands the connection off to another program.  By default, this is nnrpd,
  148. which implements the NNTP protocol for newsreaders (for example, it
  149. includes the POST command but not the IHAVE command).  You can run the
  150. reference implementation server instead of nnrpd if you want.  Doing this
  151. can be useful if you have clients that want to do both reading and article
  152. transfer.
  153.  
  154.  
  155. ------------------------------
  156.  
  157. Subject:  Can I run INN on my UUCP-only machine?
  158.  
  159. Sure.  While not designed for this, several people are running INN on
  160. machines that do not have IP-connectivity (such as UUCP-only hosts) and
  161. are quite happy with it.  You might want to give it a try, especially if
  162. you think you will be joining the Internet some day.
  163.  
  164.  
  165. ------------------------------
  166.  
  167. Subject:  Suppose I have a 286 machine?
  168.  
  169. Won't work.  INN is designed to be a memory hog; a server that has been up
  170. for a few days while will have a working set size of a few to several
  171. megabytes, although not all of it will be resident.  For example, the
  172. server keeps the active file and list of who gets what in memory, as well
  173. as all articles that it is receiving.  Unless you can do things like
  174. "malloc(64 * 1024)" without pain, INN won't work on your machine.
  175.  
  176.  
  177. ------------------------------
  178.  
  179. Subject:  Does INN implement trn's XTHREADS, tin's commands, etc?
  180.  
  181. The XTHREAD command has code but it is not supported; look at
  182. $inn/nnrpd/nnrpd.h.  This code will probably vanish after 1.4.  Tin
  183. commands are not supported.  Instead, INN supports Geoff Collyer's news
  184. overview database, nov (world.std.com, src/news/nov.dist.tar.Z).  It
  185. does not include the client package; it just updates and maintains the
  186. overview databases.  For info on how to configure INN to use NOV, read
  187. Part 3/3 of this FAQ.  (Subject: Cookbook example setting up NOV
  188. ("overchan").)
  189.  
  190.  
  191. ------------------------------
  192.  
  193. Subject:  Does INN do UUCP batching like C News?
  194.  
  195. Not as part of the standard distribution.  The batching system right
  196. now is better than B News, but Rich has said he will be working on
  197. improving that part of INN in a future release.  Christophe Wolfhugel
  198. <Christophe.Wolfhugel@grasp.insa-lyon.fr> has written a package that is
  199. very much like the C News batching system, however.  You can find it on
  200. grasp.insa-lyon.fr in the pub/unix/news/inn/contrib directory.
  201.  
  202. Version 3 of Christophe's package includes a shell version and a Perl
  203. version.  Version 4, not yet planned will only be in Perl. The
  204. configuration file has evolved from older releases in order to support
  205. new features like minimum batching".
  206.  
  207.  
  208. ======================================================================
  209.  
  210.                    COMMON DEBUGGING/SETUP QUESTIONS
  211.  
  212. ======================================================================
  213.  
  214.  
  215. ------------------------------
  216.  
  217. Subject:  Help!?  How do I configure this beast
  218.  
  219. Tom Limoncelli wrote a very good tutorial document.  It is not part of
  220. the INN release, but many FTP sites keep a copy in the same directory.
  221. Look for a file named inn-tutorial.  It is part 2 of this FAQ.
  222.  
  223.  
  224. ------------------------------
  225.  
  226. Subject:  Why does innd just exit right away with no message?
  227.  
  228. First, fix your syslog: innd always logs a message before it exits.  (The
  229. INN distribution includes a version of the current UCB syslog, along with
  230. instructions on how to install it.  Ultrix systems might want to look at
  231. the syslog that is available on gatekeeper.dec.com) Second, the most
  232. common cause of this is that you do not have a history file (or no history
  233. database).  You will see a message like this:
  234.     ME cant dbminit /usr/local/news/history No such file or directory
  235. This means that you do not have a history database.  You might want to run
  236. the BUILD script in your INN source tree or read about makehistory in
  237. doc/news-recovery.8; if you do the latter, make sure to rename the
  238. database files.  This FAQ covers general questions about INN and questions
  239. about how to compile it.  For information on configuration and debugging
  240. one's configuration, see the "INN Configuration FAQ".
  241.  
  242.  
  243. ------------------------------
  244.  
  245. Subject:  I'm getting news but postings aren't going out.
  246.  
  247. You might find it helpful to read "Appendix IV:  First-time Usenet or NNTP
  248. Installation" in the Install manual.  In order for postings to go out, you
  249. must have a newsfeeds entry that names a site to receive them.  In the
  250. standard case you want to record the article filename and Message-ID in a
  251. batchfile for the site:
  252.     myfeed/myfeed.dom.main:*,!foo.*\
  253.     Tf,Wnm:
  254. You now want to run send-nntp or nntpsend from cron so that the file is
  255. flushed and that innxmit is called to read the file and send the articles
  256. out.  See the manual pages.
  257.  
  258.  
  259. ------------------------------
  260.  
  261. Subject:  How come my host name comes out twice in the Path line?
  262.  
  263. The INN server puts its name in the Path line of every article that it
  264. receives.  Obviously, it has to do this.  The default configuration has
  265. inews put the local host in the Path header.  If nobody posts on the
  266. server and you use fully-qualified domain names on your workstations,
  267. then everything works the right way.  (If `hostname` doesn't give an
  268. FQDN on your machine, you can work-around this by setting the "domain"
  269. value in inn.conf; remember that innd never re-reads inn.conf.  You
  270. must "ctlinnd shutdown x" and then re-start the server).  Many people
  271. don't want the client machines to put their name in the Path header.
  272. To do this, set INEWS_PATH to DONT.  Finally, let me say that it is
  273. probably a mistake to have a "pathhost" line on any machine other than
  274. your server if you set INEWS_PATH to DO.  If you doubt this, please
  275. trace the article flow for yourself.  If you are curious about the
  276. effect of INEWS_PATH, read the nroff source -- not the formatted
  277. output -- of doc/inews.1
  278.  
  279.  
  280. ------------------------------
  281.  
  282. Subject:  Why does my innd often die with the message "Can't sync history,
  283.       interrupted system call"
  284.  
  285. Are you running SunOS?  If so, the answer is that Sun broke the write
  286. system call but a patch is available.  Any write could fail in this way,
  287. it is just more likely to happen when writing large files and in-core DBZ
  288. writes the history file out in one chunk.  See the "Known Problems"
  289. section of the installation manual.  To the best of my knowledge, nobody
  290. has seen this problem on any other system.
  291.  
  292.  
  293. ------------------------------
  294.  
  295. Subject: How do I create all those directories in the newsspool?
  296.  
  297. Q:  For example, if you receive comp.sys.amiga.applications, do you
  298. have to mkdir /var/spool/news/comp/sys/amiga/applications?
  299.  
  300. A:  Nope.  innd creates the directory for you the first time you
  301. receive an article for that newsgroup.
  302.  
  303.  
  304. ------------------------------
  305.  
  306. Subject: 7-bit encoded batches are not correctly processed. Why is this?
  307.  
  308. Chris Schmidt <cs@germany.eu.net> replies:
  309.  
  310. The decode program that comes with INN up to version 1.3 is broken.
  311. Because of that the last article in a 7bit encoded batch will not
  312. correctly be decoded (the last characters are screwed up).  This is
  313. fixed in INN 1.4.
  314.  
  315.  
  316. ======================================================================
  317.  
  318.                 SPECIFIC OPERATING SYSTEM BUILD ADVICE
  319.  
  320. ======================================================================
  321.  
  322.  
  323. ------------------------------
  324.  
  325. Subject: SunOS 4.1.2
  326.  
  327. SunOS 4.1.2 (but not 4.1.1 or 4.1.3) broke the write system call but a
  328. patch is available.  Any write could fail "half way", it is just more
  329. likely to happen when writing large files and in-core DBZ writes the
  330. history file out in one chunk.  See the "Known Problems" section of the
  331. installation manual.
  332.  
  333.  
  334. ------------------------------
  335.  
  336. Subject: Ultrix tip 1 (mmap)
  337.  
  338. Ultrix has a "mmap()" function, but it doesn't do the same thing as the
  339. SunOS/BSD mmap() function.  Therefore, do not configure INN to use
  340. mmap() on a Ultrix system.  INN wants to find a mmap() function
  341. that is like the one on SunOS/BSD systems.
  342.  
  343.  
  344. ------------------------------
  345.  
  346. Subject: Ultrix tip 2 (syslog)
  347.  
  348. The syslog on Ultrix sucks rotten eggs and Digital refuses to fix it.
  349. (source: everyone that uses Ultrix and has ever used other systems)
  350.  
  351. Luckily, you can replace it with the routine that comes with INN.
  352. However, some people have had better luck installing the syslog that
  353. can be had on gatekeeper.dec.com:/pub/DEC/jtkohl-syslog-complete.tar.Z
  354. It still works with old clients but does new-style syslogging, too.
  355. Works great for me so far.  (this information from:  nelson@reed.edu
  356. (Nelson Minar)).  The syslog that is shipped with INN works pretty well
  357. but there have been some claims that some old clients don't like it.
  358.  
  359.  
  360. ------------------------------
  361.  
  362. Subject: HP-UX
  363.  
  364. Q. I am running inn on an HP machine. Inn won't start up automatically
  365. :-( I can start it manually. There is no problem with news or inn once
  366. it is started.
  367.  
  368. A.  Try adding a "sleep 10" to the bottom of /etc/rc.news, or in
  369. /etc/rc, right after /etc/rc.news is invoked.  On some machines,
  370. including HP, the shell started by "#!/bin/sh" when /etc/rc is executed
  371. will exit before innd has disassociated itself from that shell.  This
  372. causes innd to exit, sometimes without printing an error message.
  373. (source: pjoslin@mbvlab.wpafb.af.mil (Paul Joslin ))
  374.  
  375. This problem goes away if you set HAVE_SETSID to "DO".  Something to do
  376. with Posix Session Leader concepts. Ick. (source:
  377. scotty@piranha.cs.uoguelph.ca (Steve Howie))
  378.  
  379.  
  380. ------------------------------
  381.  
  382. Subject: System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  383.  
  384. If you are running any non-BSD (i.e. System V based) Unix you MUST have
  385. the following option set:
  386.  
  387. ##  How should close-on-exec be done?  Pick IOCTL or FCNTL.
  388. #### =()<CLX_STYLE              @<CLX_STYLE>@>()=
  389. CLX_STYLE               FCNTL
  390.  
  391. This includes SVR4, Solaris 2.x, A/UX and SCO ODT 3.0.  This is clearly
  392. stated in the Install.ms file and repeated here since so many people
  393. post to news.software.nntp after messing it up.
  394.  
  395. If it isn't FCNTL, you'll get tons of overchan processes hanging
  396. around.  (source: Philip Gladstone <philip@charon.cto.citicorp.com>)
  397.  
  398. In SCO ODT 3.0 and MOST systems, innd will link and run if you use
  399. IOCTL but eventually will stop answering incoming calls.
  400.  
  401. Don't be fooled.  Just because it compiles doesn't mean it's going to
  402. work.
  403.  
  404. Under Solaris 2.x (SunOS 5.x) you must add the following at the
  405. beginning of each file using gethostbyname():
  406.  
  407. #define gethostbyname __switch_gethostbyname
  408.  
  409.  
  410. ------------------------------
  411.  
  412. Subject: Mac running A/UX 3.0
  413.  
  414. Use the INN malloc.
  415.  
  416.  
  417. ======================================================================
  418.  
  419.                         OPERATIONAL QUESTIONS
  420.  
  421. ======================================================================
  422.  
  423.  
  424. ------------------------------
  425.  
  426. Subject:  Safe way to edit the "active" file?
  427.  
  428. The following sequence is the shortest:
  429.  
  430. ctlinnd pause "edit active"
  431. [do something to the active file]
  432. ctlinnd reload active "edit active"
  433. ctlinnd go "edit active"
  434.  
  435. Simple!  No need to "flush" after step one.
  436.  
  437.  
  438. ------------------------------
  439.  
  440. Subject:  Expire had problems last night, and while I fixed the problem,
  441.       it still won't run.
  442.  
  443. When expire starts up it "reserves" the server so that nobody else can
  444. pause or throttle it.  This prevents anyone else from coming in and
  445. modifying the history database.  If expire bails out because of a bad
  446. error (e.g., your expire.ctl has syntax errors) it leaves the server
  447. reserved so that no maintenance will be done until a good expire run has
  448. occurred.  To unblock the server, use the ctlinnd "reserve" command with
  449. an empty string argument.
  450.  
  451.  
  452. ------------------------------
  453.  
  454. Subject:  Why am I getting alt.sex.pictures even though I have
  455.       "ME:!alt.sex.pictures" in my newsfeeds file?
  456.  
  457. The active file is the definitive list of what newsgroups you receive.
  458. INN's ME entry is different from C News and B News; please see
  459. newsfeeds.5.  If you do not want to receive alt.sex.pictures, ask the
  460. system(s) that send you news not to send it to you.  (You would have to do
  461. that no matter what news system you are running.)
  462.  
  463.  
  464. ------------------------------
  465.  
  466. Subject:  Why doesn't this newsfeeds entry do what I want?
  467.       "foo.com:alt,!alt.sex"
  468.  
  469. A newsfeeds entry is not a sys file entry.  Please read newsfeeds.5.  You
  470. might also find the sys2nf program in the frontends directory useful, as
  471. well as the inncheck Perl script that is found in the samples directory.
  472. The INN Configuration FAQ has cook-book examples of the steps required
  473. to install a NNTP feed, UUCP feed, and NNTP via nntplink feed.
  474.  
  475.  
  476. ------------------------------
  477.  
  478. Subject:  Why am I forwarding cancel messages for articles in comp.foo
  479.       when I explicitly have !comp.foo in the newsfeeds entry?
  480.  
  481. Control messages can be explicitly forwarded, so a control message to
  482. comp.foo is forwarded to sites that recieve either comp.foo or control.
  483. Please see the "Control Messages" section of innd.8.  As that
  484. documentation says, you probably want to put "!control" in the
  485. subscription list for most of your newsfeeds.
  486.  
  487.  
  488. ------------------------------
  489.  
  490. Subject:  What's the best way to upgrade to a new version of INN?
  491.  
  492. First, you should read the README and the Install.ms (yes, read
  493. them both... again).  The README includes a technique to update
  494. a new config.data file to be like your old one:
  495.  
  496.       % cd config
  497.       % make subst
  498.       % cp config.dist config.data
  499.       % ./subst -f {OLDFILE} config.data
  500. where "{OLDFILE}" names your old config.data file.
  501.  
  502. Now edit the config.data to see if you want to change any of
  503. the new settings that didn't exist in the old version's config.data
  504. file.
  505.  
  506. Compile everything:
  507.  
  508.     % cd $INN
  509.     % make world
  510.  
  511. When you feel you are ready to install the new files shut the old daemon:
  512.  
  513.     % ctlinnd shutdown 'upgrade in progress'
  514.     [ kill innwatch by hand if you need to ]
  515.  
  516. Install the new files:
  517.  
  518.     % cd $INN
  519.     % make update
  520.  
  521. Now update all your $INN/site files to be the same as they were for
  522. your old software.  "cd $INN/site ; make diff-installed" will tell
  523. you what's different between the files in /usr/lib/news and $INN/site.
  524. If you only make changes in the $INN/site directory and use "make install"
  525. to copy them into place you'll save your self a lot of trouble.
  526. Read $INN/site/Makefile for more interesting things that "make" can
  527. do.
  528.  
  529. When you feel you are ready to install the new $INN/site files:
  530.  
  531.     % cd $INN/site
  532.     % make install
  533.  
  534. Re-start the system:
  535.  
  536.     % sh /usr/lib/news/etc/rc.news
  537.  
  538. If everything was done right you should be up and running.  Part 2 of
  539. the FAQ gives tips on testing your configuration.
  540.  
  541.  
  542. ------------------------------
  543.  
  544. Subject:  Can I use gzip with INN?
  545.  
  546. (this was written with the help of Michael Brouwer <michael@tar.wft.stack.urc.tue.nl>)
  547.  
  548. There are three things that can be effected by using gzip:  Compression
  549. of old logs, compressing batches to send out, and decompressing batches
  550. that come in.
  551.  
  552. With INN 1.4 all you need to do is change two lines in config.data to
  553. something like this:
  554.  
  555. COMPRESS                /usr/local/bin/gzip
  556. DOTZ                    .gz
  557.  
  558. If you rebuild INN with these options set, all logs will be gzipped, and rnews
  559. will use gzip to decompress news.
  560.  
  561. gzip will automaticly and transparently decompress UNIX Compress, SCO
  562. UNIX Compress (I'm told it's 99% compatible with UNIX Compress), Pack,
  563. and gzip.  Therefore, you can now receive batches compressed with any
  564. of the above listed formats.  Let's refer to this as "your site is now
  565. a universal decompresser".
  566.  
  567. It has been reported that if you hardlink gzip to be zcat, and make
  568. sure that it is the zcat that INN uses, you can get the "universal
  569. decompresser" without having to use gzip for your logs.  (Though, gzip
  570. for your logs is a big win, so why make trouble for yourself?)
  571.  
  572. `send-uucp' will still use compress for outgoing batches, so the sites
  573. you feed won't suddenly start getting data they don't understand.
  574.  
  575. Before you can send gzipped batches, you should make sure that the
  576. sites that you feed have made the above changes so that they have the
  577. "universal decompresser" too.
  578.  
  579. Edit send-uucp to use gzip instead of compress for certain hosts (see
  580. example of using compress -b12 for the host esac in send-uucp),
  581. outgoing batches will be gzipped.
  582.  
  583. If you use sendbatch, you will have to edit the file so that COMPRESS
  584. is set to "gzip" and COMPFLAGS is set to "-9vc".
  585.  
  586.  
  587. ======================================================================
  588.  
  589.                           ADVANCED QUESTIONS
  590.  
  591. ======================================================================
  592.  
  593.  
  594. ------------------------------
  595.  
  596. Subject:  What do I do if /var/spool/news is set up over many partitions?
  597.  
  598. First of all, you can do this by either mounting a filesystem at
  599. /var/spool/news/comp (for example) or by mounting a filesystem anywhere
  600. and making /var/spool/news/comp a symbolic link to the new partition.
  601.  
  602. Articles will be written as normal, but cross-posts have to be handled
  603. specially now.  Usually INN handles crossposts by writing the article
  604. to the first newssgroup, and then creating hard links to all the other
  605. places where the article should appear.  Hard links do not take up
  606. additional disk space (except making your directories longer).  Hard
  607. links also have the advantage that the file data doesn't get deleted
  608. until the last hard link is gone (and they can be deleted in any
  609. order).  Therefore, you can expire each newsgroup at a different rate,
  610. but the file data won't delete until it is expired from the last
  611. newsgroup.
  612.  
  613. The problem is that two hard linked files must both be on the same
  614. filesystem (partition).
  615.  
  616. When INN sees that it can not make a hard link (because an article is
  617. cross-posted across two partitions) it will try to make a symbolic
  618. link.  If your system can not do symbolic links, set HAVE_SYMLINKS to
  619. DONT in your config.data file.  This will make INN write a second
  620. (or third, etc.) copy of the file instead.  (NOTE: INN 1.4 doesn't
  621. make the extra files.  This feature is planned for INN 1.5.)
  622.  
  623. Anyway, even though INN will automatically create symbolic links, you
  624. have to give expire the "-l" flag so that it will know to modify its
  625. behavior.  Suppose that a message is posted to rec.photo and
  626. alt.cameras and suppose that rec.photo expires more quickly then the
  627. alt group.  If this happens, then you will be left with a dangling
  628. symlink.  The -l flag prevents this from happening.
  629.  
  630. To inform expire that your spool is split across multiple partitions:
  631.  
  632. In news.daily, change:
  633.     EXPIREFLAGS="-v1"
  634. to read
  635.     EXPIREFLAGS="-v1 -l"
  636.  
  637. In expirerm, change:
  638.     RMPROC="fastrm -e -u -s ${SPOOL}"
  639. to read
  640.     RMPROC="fastrm -e -s ${SPOOL}"
  641.  
  642. You also have to edit innwatch and innstat.  After that, you're done!
  643.  
  644. If you ever need to run "makehistory" you should pay attention to this
  645. caveat in makehistory(8):
  646.  
  647.     Makehistory does not handle symbolic links.  If the news
  648.     spool area is split across multiple partitions, the follow-
  649.     ing commands should probably be run before the database is
  650.     regenerated:
  651.         cd /usr/spool/news
  652.         find . -type l -print | xargs -t rm
  653.  
  654. However, if /var/spool/news/comp was a symlink to the partition
  655. that comp is really on, you'll have to reinstall that link.  You
  656. have avoid this by changing the above commands to:
  657.         cd /usr/spool/news
  658.         find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
  659.  
  660. ------------------------------
  661.  
  662. Subject:  How do I talk to innd from C or Perl?
  663.  
  664. Rich Salz says:
  665.  
  666. If you are writing C, look at doc/inndcomm.3 and include/inndcomm.h;
  667. they include all you need to do any ctlinnd command (in fact, ctlinnd
  668. itself is little more than a call to the library).
  669.  
  670. Hacking up a Perl subroutine that spoke to innd's Unix-domain control
  671. socket should be fairly straightforward but hasn't yet been written.
  672.  
  673.  
  674. ------------------------------
  675.  
  676. Subject:  How do I set up a delayed IHAVE/SENDME over NNTP?
  677.  
  678. Christophe Wolfhugel <Christophe.Wolfhugel@grasp.insa-lyon.fr> writes:
  679.  
  680. INN now allows to generate a timestamp entry in the batchfiles or to
  681. the channels/exploders (Wt in newsfeeds) which can be used to allow for
  682. example delayed ihave/sendme processing. INN's senders (like innxmit)
  683. do not use that data yet.
  684.  
  685. Christophe.Wolfhugel@grasp.insa-lyon.fr has written a small patch for
  686. nntplink 3.1.0 which supports this, the patch is available in his
  687. anonymous ftp:
  688.     grasp.insa-lyon.fr:pub/unix/news/nntp/nntplink/delayed-1.0.pch
  689. The patch has been incorporated into nntplink 3.2, which has finally
  690. been released.  The syntax that you would use in your newsfeeds
  691. file would be:
  692.  
  693.     site:*:Tf,Wnmt:
  694.  
  695. and run this command now and then:
  696.  
  697.     nntplink -i batchfile -y 300 -b site news.site.fr
  698.  
  699. The delayed IHAVE/SENDME is expected to allow bandwidth savings in
  700. situations where all sites use nntplink in following topology:
  701.  
  702.      Your site -- 64k -----------+-----------  Site 1
  703.                                  |               |
  704.                                  |              2mb
  705.                                  |               |
  706.                                  +------------ Site 2
  707.  
  708.    Site 1 and 2 are in the same metropolitan area, you feed them both.
  709.    With the standard nntplink layout, you generally send all articles
  710.    twice, which is a waste even if you're at 2 Meg/s link and even if
  711.    Site 1 and 2 do nntplinks, you're faster.
  712.  
  713.    The delayed link would be used between your site and Site 2.  A 2 or
  714.    3 minute delay allows Site 1 to feed Site 2 before you, and in case
  715.    of a Site 1 outage the backup starts nearly immediately.
  716.  
  717.    Reasonnable delays are still kept as You -> 1 -> 2 should take less
  718.    than one minute (or just 300 ms disk to disk if using nntplink -i ? :)).
  719.  
  720. Experiences seem to show that a 2 to 3 minutes delay is
  721. a reasonable choice.
  722.  
  723. Chris
  724.